﻿@{
    ViewBag.Title = "我的地址";
    Layout = "~/Views/Shared/_UsersCenterLayout.cshtml";
    ViewBag.NavTitle = "我的地址";
}
@using MvcMall.Portal.Controllers.Users.ViewModels;
@model List<UserAddressQueryModel>
<div class="right_box">
    <div class="right_box_map">
        我的地址
    </div>
    <table class="right_box_tab" style="margin-top: 10px;" width="100%" border="0" cellspacing="0"
        cellpadding="0">
        <tr height="30" class="tab_title">
            <td width="80%">
                收件地址
            </td>
            <td>
                操作
            </td>
        </tr>
        @foreach (var item in Model)
        {
            <tr height="40" class="tab_td1" onmouseover="this.className='tab_td2'" onmouseout="this.className='tab_td1'">
                <td width="80%">
                    @item.Address
                </td>
                <td>
                    @Html.ActionLink("修改", "SaveAddress", "Users", new { @Id = item.Id }, null)
                    @Html.ActionLink("删除", "DeleteAddress", "Users", new { @Id = item.Id }, new { @onclick = "return confirm('是否确定删除?')" })
                </td>
            </tr>
        }
    </table>
    <div style="line-height: 80px;">
        <p class="avatar_btn">
            @Html.ActionLink("新增地址", "SaveAddress", "Users", null, null)
        </p>
    </div>
</div>
